package
{
	import flash.display.Sprite;
	import flash.display.Graphics;
	
	public class Food extends Sprite
	{
		public function Food()
		{
			draw();
		}
		/**
		 * 画矩形 
		 * 
		 */		
		private function draw():void
		{
			var g:Graphics = this.graphics;
			g.beginFill( 0x00ffcc );
			g.drawRect(0,0,10,10);
			g.endFill();
		}
	}
}